package com.kitemap.widget.business
{
	import com.kitemap.widget.business.*;	import com.kitemap.widget.events.*;		import flash.events.Event;	import flash.events.EventDispatcher;		
	public class SessionManager extends EventDispatcher
    {
        private var _isAuthenticated:Boolean;
        public function setAuthenticationStatus(status:Boolean):void 
        {
			trace("SessionManager::setAuthenticated status" + status);
            _isAuthenticated = status;
            dispatchEvent(new SessionEvent("isAuthenticatedChange", true));
        }
        
        [Bindable (event="isAuthenticatedChange")]
        public function get isAuthenticated():Boolean
        {
            return (_isAuthenticated != null)?_isAuthenticated:false;
        }

        public function handleFault(message:String):void {
            trace(message);
        }
    }

}